<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <title>文章管理</title>
</head>
<base href="<%=basePath%>">
<link rel="stylesheet" type="text/css" href="resources/lib/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="resources/stylesheets/theme.css">
<link rel="stylesheet" href="resources/lib/font-awesome/css/font-awesome.css">

<script src="resources/lib/jquery-1.7.2.min.js" type="text/javascript"></script>


<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="lib/html5.js"></script>
<script src="resources/lib/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript">
    $("[rel=tooltip]").tooltip();
    $(function() {
        $('.demo-cancel-click').click(function() {
            return false;
        });
    });
</script>
<![endif]-->
</head>

<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->

<body class="">
    <jsp:include page="/view/common/head.jsp"></jsp:include>
    <jsp:include page="/view/common/left.jsp"></jsp:include>
    <div class="content">


        <ul class="breadcrumb">
            <li><a href="admin/index">主页</a> <span class="divider">/</span></li>
            <li class="active">文章管理</li>
        </ul>
        <div class="container-fluid">
            <div class="row-fluid"></div>


            <div class="btn-toolbar">
                <a href="articleInfo/returnAddArticleInfo"><button class="btn btn-primary">
                    <i class="icon-plus"></i>发布新闻
                </button></a>
                <div class="btn-group"></div>
            </div>
            <div class="well">
                <table class="table">
                    <thead>
                        <tr>
                            <th style="text-align: center">序号</th>
                            <th style="text-align: center">APP应用</th>
                            <th style="text-align: center">新闻类型</th>
                            <th style="text-align: center">标题</th>
                            <th style="text-align: center">发布人</th>
                            <th style="text-align: center">发布时间</th>
                            <th style="width: 26px;">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                    <c:forEach items="${pageBean.list}" var="message" varStatus="status">
                        <tr>
                            <th style="text-align: center">${message.id}</th>
                            <th style="text-align: center">${message.appType}</th>
                            <th style="text-align: center">${message.type}</th>
                            <th style="text-align: center">${message.title}</th>
                            <th style="text-align: center">${message.creatorName}</th>
                            <th style="text-align: center">${message.createTime}</th>
                            <td><a href="articleInfo/queryNewDetail/${message.id}"><i class="icon-pencil"></i></a>
                                <a href="#myModal" role="button" data-toggle="modal"><i
                                        class="icon-remove"></i></a>
                            </td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
            <div class="pagination">
                ${pageBean.pageStr}
            </div>
        </div>

    </div>
</body>
</html>
